package com.iring.domain.pay.info;

import com.iring.domain.config.PaypalPaymentIntent;
import com.iring.domain.config.PaypalPaymentMethod;

/**
 * @author wanggan
 */
public class PayPalInfo extends PayInfo {

    // 总的支付金额
    private Double total;
    // 当前的货币类型
    private String currency;
    // 支付类型
    private PaypalPaymentMethod method;
    // 支付用途
    private PaypalPaymentIntent intent;



    public PayPalInfo() {
    }

    public PayPalInfo(Double total) {
        this.total = total;
    }

    public PayPalInfo(Double total, String currency, PaypalPaymentMethod method,
                      PaypalPaymentIntent intent, String description) {
        this.total = total;
        this.currency = currency;
        this.method = method;
        this.intent = intent;
        this.description = description;
    }

    @Override
    public String toString() {
        return "{total:" + total + ",currency:" + currency + ",method:" + method + ",intent:" + intent + "}";
    }

    public Double getTotal() {
        return total;
    }

    public String getCurrency() {
        return currency;
    }

    public PaypalPaymentMethod getMethod() {
        return method;
    }

    public PaypalPaymentIntent getIntent() {
        return intent;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public void setMethod(PaypalPaymentMethod method) {
        this.method = method;
    }

    public void setIntent(PaypalPaymentIntent intent) {
        this.intent = intent;
    }
}
